home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 4
/
Precision Software Applications Silver Collection Volume 4 (1993).iso
/
new
/
s3frgn21.arj
/
FRGN21.DOC
< prev
Wrap
Text File
|
1993-08-14
|
8KB
|
192 lines
Program: S3 Foreign Mailing Preprocessor (SFP)
Version: 2.1
Date: 08/14/93
Author: George Spafford
Purpose:
To identify country names in either delimitted, or fixed-length ASCII
data files and then add the ISAL code and/or geographic location.
Why?
Every day, I deal with mailing lists from many customers that have a
mixture of U.S., Canadian and foreign addresses. In order for our mail
line to properly process the mailing lists, they process the domestic
names and then they pull out and process the Canadian names. We use an
excellent mailing list program called Arclist by Group One software.
Arclist is really an excellent database program aimed at processing
mailing lists according to the latest requirements. For domestic mail,
it does an excellent job and I recommend it. However, for foreign mail,
there are are times when you need to print the countries out in an index
order other than just by country name.
The foreign mail preprocessor, as I call it, takes ASCII data files and
adds an ISAL (International Surface Air Lift) code to the record if there
is one. It also adds a geographical location name to each record. Now,
you can print out your mailing list on a sort order of ISAL-COUNTRY-CITY or
GEOGRAPHICAL-COUNTRY-CITY. This helps our mail line tremendously and it
may help yours.
This program will probably only be of use to you if you do a lot of importing
of data and then sorting it yourself. Of course, if you can think of other
uses, then have at it!
How?
Okay, besides the normal fields that have importance in mailing, such as the
Name, Company Name, Address 1, Address 2, City, State and Zip, you must also
add Country Name, ISAL and Location.
The country name you must key in. Guidelines for country names include:
- Upper Case
- By itself
- No abbreviations
- Avoid punctuation
These guidelines, and others, can be found in the U.S. Post Office's IMM
(International Mail Manual) and the World Post Office's ISAL guidebook.
You must have the country names in a consistent field location throughout
the entire data file. If you do not, then this program will not work for you.
COUNTRY.LST
The FOREIGN.EXE file, when it is first started, loads a data file called
COUNTRY.LST that contains country names, ISAL codes and Location. If you
need to add to, or change this file, you can. However, you can not have
more than 400 entries. Samples:
COUNTRY|GROUP|LOCATION 'do not delete this record!!!!!!!!
Afghanistan||AS
Albania|1|EU
Algeria|4|AF
Andorra||EU
Angola|4|AF
Antigua and Barbuda||NA
Argentina|2|SA
Aruba|2|NA
This file must be in the same directory as the FOREIGN.EXE file. Do NOT
delete the first record!!! If you need to edit this file, use EDIT, QEdit,
EDLIN or another ASCII editor. Do not use a word processor that adds
control codes. If the entry does not have an ISAL code, such as Andorra,
do not put one in. The program will put a 999 in automatically when it runs.
Always put in the geographical location. If there is not one, the program
will assign a location of XXX. The program will also assign these codes if
there are abbreviations or mis-spellings in the country name and it can not
identify it.
COUNTRY.LST file specification:
Country Name 30 bytes
| 01
ISAL Code 03
| 01
Location 03
Processing lists:
An important note! FRGN88.EXE is designed for 8088 and 80286 systems. The
FRGN386.EXE program is optimized for 80386 and above processors. Use the
.EXE that matches your hardware for the best performance.
Run the program and then answer its questions about the input and output file
names. Note, these file names can not be the same. After you have entered the
file names, tell the program whether the data file is delimited or fixed length.
If it is fixed length, tell it the starting byte of the country field and the
length of the field. (In English, look at the data file and count the number of
characters from the left edge to where the country names start - this is the
starting byte and then count how many characters long the field is - this is
the length).
If it is delimitted, tell the program the field delimitter used and the
number of the field, counting from the left, that holds the country name.
When the program asks about the use of literals, it is asking if you want to
have the location and country code encapsulated by quotation marks.
The program will then process your file. If you have a fixed length record
format, then the program will add 6 bytes to your overall record length in
the format of CCCLLL. Where CCC is a 3 digit desciptor of the ISAL code or a
999 if an ISAL code does not exist. LLL is the geographic location, or an
XXX if a location is not identified.
GEOGRAPHIC LOCATIONS TABLE:
In the COUNTRY.LST file, you can set up the locations however you wish. I used
the following:
North America NA
South America SA
Europe EU
Asia AS
Pacific and Australia PA
Africa AF
Atlantic Ocean AO
I just used an atlas to group the countries accordingly. If you need to be
more specific, then just change the COUNTRY.LST file.
HISTORY:
v2.1 08/14/93
The program can now process delimitted records that are mixture
of fields encapsulated by quotes and fields that are not. For
example:
11111,"Mr. John Smith, Jr.",1,1,1,22,"3000 West St"
Version 1.0 required that all fields either be encapsulated by
quotes or no quotes at all.
FRGN386.EXE is optimized for 80386 and above processors.
FRGN88.EXE is for 8088 and 80286 systems.
v1.0 11/12/92
Initial release.
============================
Please Register This Program
============================
The S3 Foreign Preprocessor (SFP) is distributed as SHAREWARE.
It is not Public Domain. If you find that this program aids you in your
work, it must be registered within 30 days of your first usage of it.
Continued use of the program without paying for it is a violation of the site
license and constitutes software piracy.
This product is priced at $10 US per concurrently used copy.
Registration of this product will allow me to continue developing
specialized software for you, the consumer, at shareware prices.
Payments (please do not send cash) can be sent to:
George Spafford
3003 Lakeshore Drive, #216
St. Joseph, MI 49085
USA
I can also be reached on the EXEC-PC BBS and the Channel One BBS.
SHAREWARE DISTRIBUTORS:
You may distribute this program as long as it is made clear that you are
only a distributor and that the program is not registered until they make
payment to me. Please do not charge more than $5 per disk to distribute
SFP to your customers.
::::: Legal :::::
SFP IS DISTRIBUTED AS IS. THE AUTHOR (GEORGE SPAFFORD) MAKES
NO WARRANTIES OF APPROPRIATENESS, MERCHANTABILITY OR FITNESS FOR A
PARTICULAR PURPOSE. THE AUTHOR ASSUMES NO LIABILITY FOR ANY DAMAGES
(INCLUDING LOST PROFITS, WAGES OR ANY OTHER CONSEQUENTIAL OR INCIDENTAL
DAMAGES) ARISING OUT OF THE MISUSE OR INABILITY TO USE THIS PRODUCT.